import org.codehaus.groovy.grails.commons.ConfigurationHolder

/**
 * WeceemClusterPluginUrlMappings
 * @author Yasumasa Note
 *
 * URL Mapping for synchronizing 
 */
class WeceemClusterPluginUrlMappings {
	
	// Same as WeceemPluginUrlMappings
    static CONTENT_PREFIX = ((ConfigurationHolder.config.weceem.content.prefix instanceof String) ? 
        ConfigurationHolder.config.weceem.content.prefix : '')
    static TOOLS_PREFIX = ((ConfigurationHolder.config.weceem.tools.prefix instanceof String) ? 
        ConfigurationHolder.config.weceem.tools.prefix : 'wcm')
    static ADMIN_PREFIX = ((ConfigurationHolder.config.weceem.admin.prefix instanceof String) ?
        ConfigurationHolder.config.weceem.admin.prefix : 'wcm/admin')
    
    static mappings = {
		
        def adminURI = "/${WeceemPluginUrlMappings.ADMIN_PREFIX}"
		
        delegate.(adminURI+"/cluster")(controller: 'cluster')
		
    }
	
}
